package com.example.imtoken.room.schema

import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * 交易记录
 * @property create_at String   时间
 * @property amount String  交易金额
 * @property from String    自己的地址
 * @property to String  交易出的地址
 * @property txid String    *
 * @property gas_price String   *
 * @property state Int  交易状态  0 待完成 1成功 2失败
 * @property type Int 交易类型 1,转出,2,转入,3,失败
 * @property id Int
 * @constructor
 */
@Entity(tableName = "transaction_record")
data class TransactionRecordSchema(
    @PrimaryKey(autoGenerate = true) var id: Int? = null,
    val coin: String?,
    val create_at: String?,
    val amount: String?,
    val from: String?,
    val to: String?,
    val txid: String?,
    val gas_price: String?,
    var type: Int?,
    var state: Int?
)